# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
def is_triangles(a,b,c):
    if a<=0 or b<=0 or c<=0:
        raise ValueError('三角形的三边不能为负数')
    else:
        if a+b>c and a+c>b and b+c>a:
            print(f'三角形的三边分别为{a},{b},{c}')
        else:
            raise ValueError('三边不能组成三角形')
if __name__=='__main__':
    try:
        a=int(input('请输入一个数'))
        b = int(input('请输入二个数'))
        c = int(input('请输入三个数'))
        is_triangles(a,b,c)
    except ValueError as a:
        print(a)
